package com.fndsoft.zheshangmeap.domain;

import java.util.ArrayList;
import java.util.Arrays;

import com.fndsoft.zheshangmeap.listener.CommonListener;
import com.fndsoft.zheshangmeap.net.OperateCode;

/**
 * @author carlos carlosk@163.com
 * @version 创建时间：2012-9-30 下午8:47:56 传输的对象
 */

public class ThreadMessage extends BaseDomain {
	@Override
	public String toString() {
		return "ThreadMessage [sendClassName=" + sendClassName + ", intData1="
				+ intData1 + ", intData2=" + intData2 + ", intData3="
				+ intData3 + ", intData4=" + intData4 + ", intData5="
				+ intData5 + ", longData1=" + longData1 + ", booleanData1="
				+ booleanData1 + ", booleanData2=" + booleanData2
				+ ", booleanData3=" + booleanData3 + ", booleanData4="
				+ booleanData4 + ", booleanData5=" + booleanData5
				+ ", isNeedUpdateSession=" + isNeedUpdateSession
				+ ", isRequestFile=" + isRequestFile + ", stringData1="
				+ stringData1 + ", stringData2=" + stringData2
				+ ", stringData3=" + stringData3 + ", stringData4="
				+ stringData4 + ", stringData5=" + stringData5
				+ ", floatData1=" + floatData1 + ", floatData2=" + floatData2
				+ ", floatData3=" + floatData3 + ", floatData4=" + floatData4
				+ ", floatData5=" + floatData5 + ", doubleData1=" + doubleData1
				+ ", doubleData2=" + doubleData2 + ", doubleData3="
				+ doubleData3 + ", doubleData4=" + doubleData4
				+ ", doubleData5=" + doubleData5 + ", data1s=" + data1s
				+ ", errorCodeResId=" + errorCodeResId + ", receviceIsSucces="
				+ receviceIsSucces + ", receviceMessage=" + receviceMessage
				+ ", receviceJsonContent=" + receviceJsonContent
				+ ", receviceErrorCode=" + receviceErrorCode
				+ ", receviceErrorResCode=" + receviceErrorResCode
				+ ", operateCode=" + operateCode + ", subOperateCode="
				+ subOperateCode + ", object1=" + object1
				+ ", returnUICommonLinstener=" + returnUICommonLinstener
				+ ", receviceByteArrContent="
				+ Arrays.toString(receviceByteArrContent) + "]";
	}

	private String sendClassName;
	private int intData1;
	private int intData2;
	private int intData3;
	private int intData4;
	private int intData5;
	private long longData1;
	private boolean booleanData1;
	private boolean booleanData2;
	private boolean booleanData3;
	private boolean booleanData4;
	private boolean booleanData5;
	private boolean isNeedUpdateSession;
	private boolean isRequestFile;
	private String stringData1;
	private String stringData2;
	private String stringData3;
	private String stringData4;
	private String stringData5;
	private float floatData1;
	private float floatData2;
	private float floatData3;
	private float floatData4;
	private float floatData5;
	private double doubleData1;
	private double doubleData2;
	private double doubleData3;
	private double doubleData4;
	private double doubleData5;
	private ArrayList<? extends Object> data1s;
	private int errorCodeResId;// 错误代码,这里就是资源文件的文字
	private boolean receviceIsSucces;// 返回是否成功
	private String receviceMessage;// 返回的消息
	private String receviceJsonContent;// 返回的整个字符串内容
	private String receviceErrorCode;// 服务器端返回的result
	private int receviceErrorResCode;// 服务器端返回的资源内容
	private OperateCode operateCode;
	private OperateCode subOperateCode;
	private Object object1;
	private CommonListener returnUICommonLinstener;// 返回到前台的时候所需要的监听器
	private byte[] receviceByteArrContent; // 服务端返回文件的字节数组

	public CommonListener getReturnUICommonLinstener() {
		return returnUICommonLinstener;
	}

	public void setReturnUICommonLinstener(
			CommonListener returnUICommonLinstener) {
		this.returnUICommonLinstener = returnUICommonLinstener;
	}

	public OperateCode getSubOperateCode() {
		return subOperateCode;
	}

	public void setSubOperateCode(OperateCode subOperateCode) {
		this.subOperateCode = subOperateCode;
	}

	public Object getObject1() {
		return object1;
	}

	public void setObject1(Object object1) {
		this.object1 = object1;
	}

	public boolean isNeedUpdateSession() {
		return isNeedUpdateSession;
	}

	public void setNeedUpdateSession(boolean isNeedUpdateSession) {
		this.isNeedUpdateSession = isNeedUpdateSession;
	}

	public int getReceviceErrorResCode() {
		return receviceErrorResCode;
	}

	public void setReceviceErrorResCode(int receviceErrorResCode) {
		this.receviceErrorResCode = receviceErrorResCode;
	}

	public String getReceviceErrorCode() {
		return receviceErrorCode;
	}

	public void setReceviceErrorCode(String receviceErrorCode) {
		this.receviceErrorCode = receviceErrorCode;
	}

	public int getIntData1() {
		return intData1;
	}

	public void setIntData1(int intData1) {
		this.intData1 = intData1;
	}

	public int getIntData2() {
		return intData2;
	}

	public void setIntData2(int intData2) {
		this.intData2 = intData2;
	}

	public int getIntData3() {
		return intData3;
	}

	public void setIntData3(int intData3) {
		this.intData3 = intData3;
	}

	public int getIntData4() {
		return intData4;
	}

	public void setIntData4(int intData4) {
		this.intData4 = intData4;
	}

	public int getIntData5() {
		return intData5;
	}

	public void setIntData5(int intData5) {
		this.intData5 = intData5;
	}

	public boolean isBooleanData1() {
		return booleanData1;
	}

	public void setBooleanData1(boolean booleanData1) {
		this.booleanData1 = booleanData1;
	}

	public boolean isBooleanData2() {
		return booleanData2;
	}

	public void setBooleanData2(boolean booleanData2) {
		this.booleanData2 = booleanData2;
	}

	public boolean isBooleanData3() {
		return booleanData3;
	}

	public void setBooleanData3(boolean booleanData3) {
		this.booleanData3 = booleanData3;
	}

	public boolean isBooleanData4() {
		return booleanData4;
	}

	public void setBooleanData4(boolean booleanData4) {
		this.booleanData4 = booleanData4;
	}

	public boolean isBooleanData5() {
		return booleanData5;
	}

	public void setBooleanData5(boolean booleanData5) {
		this.booleanData5 = booleanData5;
	}

	public String getStringData1() {
		return stringData1;
	}

	public void setStringData1(String stringData1) {
		this.stringData1 = stringData1;
	}

	public String getStringData2() {
		return stringData2;
	}

	public void setStringData2(String stringData2) {
		this.stringData2 = stringData2;
	}

	public String getStringData3() {
		return stringData3;
	}

	public void setStringData3(String stringData3) {
		this.stringData3 = stringData3;
	}

	public String getStringData4() {
		return stringData4;
	}

	public void setStringData4(String stringData4) {
		this.stringData4 = stringData4;
	}

	public String getStringData5() {
		return stringData5;
	}

	public void setStringData5(String stringData5) {
		this.stringData5 = stringData5;
	}

	public float getFloatData1() {
		return floatData1;
	}

	public void setFloatData1(float floatData1) {
		this.floatData1 = floatData1;
	}

	public float getFloatData2() {
		return floatData2;
	}

	public void setFloatData2(float floatData2) {
		this.floatData2 = floatData2;
	}

	public float getFloatData3() {
		return floatData3;
	}

	public void setFloatData3(float floatData3) {
		this.floatData3 = floatData3;
	}

	public float getFloatData4() {
		return floatData4;
	}

	public void setFloatData4(float floatData4) {
		this.floatData4 = floatData4;
	}

	public float getFloatData5() {
		return floatData5;
	}

	public void setFloatData5(float floatData5) {
		this.floatData5 = floatData5;
	}

	public double getDoubleData1() {
		return doubleData1;
	}

	public void setDoubleData1(double doubleData1) {
		this.doubleData1 = doubleData1;
	}

	public double getDoubleData2() {
		return doubleData2;
	}

	public void setDoubleData2(double doubleData2) {
		this.doubleData2 = doubleData2;
	}

	public double getDoubleData3() {
		return doubleData3;
	}

	public void setDoubleData3(double doubleData3) {
		this.doubleData3 = doubleData3;
	}

	public double getDoubleData4() {
		return doubleData4;
	}

	public void setDoubleData4(double doubleData4) {
		this.doubleData4 = doubleData4;
	}

	public double getDoubleData5() {
		return doubleData5;
	}

	public void setDoubleData5(double doubleData5) {
		this.doubleData5 = doubleData5;
	}

	public ArrayList<? extends Object> getData1s() {
		return data1s;
	}

	public void setData1s(ArrayList<? extends Object> data1s) {
		this.data1s = data1s;
	}

	public boolean isReceviceIsSucces() {
		return receviceIsSucces;
	}

	public void setReceviceIsSucces(boolean receviceIsSucces) {
		this.receviceIsSucces = receviceIsSucces;
	}

	public boolean isRequestFile() {
		return isRequestFile;
	}

	public void setRequestFile(boolean isRequestFile) {
		this.isRequestFile = isRequestFile;
	}

	public String getReceviceMessage() {
		return receviceMessage;
	}

	public void setReceviceMessage(String receviceMessage) {
		this.receviceMessage = receviceMessage;
	}

	public String getReceviceJsonContent() {
		return receviceJsonContent;
	}

	public void setReceviceJsonContent(String receviceJsonContent) {
		this.receviceJsonContent = receviceJsonContent;
	}

	public int getErrorCodeResId() {
		return errorCodeResId;
	}

	public void setErrorCodeResId(int errorCodeResId) {
		this.errorCodeResId = errorCodeResId;
	}

	public OperateCode getOperateCode() {
		return operateCode;
	}

	public void setOperateCode(OperateCode operateCode) {
		this.operateCode = operateCode;
	}

	public String getSendClassName() {
		return sendClassName;
	}

	public void setSendClassName(String sendClassName) {
		this.sendClassName = sendClassName;
	}

	public long getLongData1() {
		return longData1;
	}

	public void setLongData1(long longData1) {
		this.longData1 = longData1;
	}

	public byte[] getReceviceByteArrContent() {
		return receviceByteArrContent;
	}

	public void setReceviceByteArrContent(byte[] receviceByteArrContent) {
		this.receviceByteArrContent = receviceByteArrContent;
	}

	/**
	 * 
	 * @author carlos carlosk@163.com
	 * @version 创建时间：2012-10-1 上午5:59:21
	 * @param retunaMethodName
	 * @param o必须是基本类型
	 * @return
	 */
	public static ThreadMessage createThreadMessage(OperateCode operateCode) {
		ThreadMessage threadMessage = new ThreadMessage();
		threadMessage.operateCode = operateCode;
		return threadMessage;
	}

	public ThreadMessage() {
		super();
	}

}
